﻿using BaseData.CommonLib.Models;
using Swimj.CommonLib.Base;

namespace BaseData.RazorLib.Services
{
    public interface IMaterialCategoryService
    {
        Task<Result<List<MaterialCategoryTreeResponseDto>>?> QueryMaterialCategoriesByTree();

        Task<PaginatedResult<MaterialCategoryInfoResponseDto>?> QueryMaterialCategories(MaterialCategorySearchRequestDto searchRequestDto);

        Task<Result<MaterialCategoryInfoResponseDto>?> GetMaterialCategory(int id);

        Task<Result<MaterialCategoryInfoResponseDto>?> CreateMaterialCategory(MaterialCategoryEditRequestDto model);

        Task<Result<MaterialCategoryInfoResponseDto>?> UpdateMaterialCategory(int id, MaterialCategoryEditRequestDto model);

    }
}